@layout("/common/_container.html",{js:["/assets/modular/system/cabinet/cabinetSub.js"]}){

<!-- <div class="layui-body-header">
    <span class="layui-body-header-title">大小柜子设置</span>
</div>
 -->
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                        	<!-- <div class="layui-inline">
                            	<span style="font-size: 16px">机柜编号：</span><span id="cabinetId" style="font-size: 16px;color: #2F4056" class="layui-span"></span>
                            </div> -->
                        	<div class="layui-inline">
                            	<span style="font-size: 16px">机柜设备号：</span><span id="cabinetName" style="font-size: 16px;color: #2F4056" class="layui-span"></span>
                            </div>
                            <div class="layui-inline">
                                @if(shiro.hasPermission("/cabinet/addSub")){
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe669;</i>初始化柜格</button>
                                @}
                                @if(shiro.hasPermission("/cabinet/api/openCabinet")){
                                <button id="openAllCabinet" class="layui-btn icon-btn"><i class="layui-icon">&#xe655;</i>打开全部柜门</button>
                                @}
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="subCabinetTable" lay-filter="subCabinetTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/cabinet/updateCabinetSub")){
    	<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="updateCabinetSub">修改</a>
    @}
    @if(shiro.hasPermission("/cabinet/api/openCabinet")){
    	<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="openCabinet">开门</a>
    @}
</script>
@}